home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / elfdump.z / elfdump
Text File  |  1998-10-30  |  12KB  |  331 lines

  1.  
  2.  
  3.  
  4. EEEELLLLFFFFDDDDUUUUMMMMPPPP                                                                EEEELLLLFFFFDDDDUUUUMMMMPPPP
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      elfdump - dumps selected parts of a 32-bit or a 64-bit ELF object
  10.      file/archive and displays them in ELF style
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      eeeellllffffdddduuuummmmpppp [ options ] file
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The eeeellllffffdddduuuummmmpppp command dumps selected parts of a given ELF object _f_i_l_e or an
  17.      archive _f_i_l_e.
  18.  
  19.      This command works for 32-bit or 64-bit ELF object files or ELF archives
  20.      only.  In the case of an archive, options other than ----gggg generate output
  21.      output from each object in the archive.  eeeellllffffdddduuuummmmpppp accepts one or more of
  22.      these options:
  23.  
  24.           ----aaaa   Dumps the archive header of each member of an archive.
  25.  
  26.           ----bbbbrrrriiiieeeeffff
  27.                Dump most sections in the file.  Like ----hhhh, but leaves out
  28.                sections whose names begin with ._d_e_b_u_g_, ._r_e_l, or ._M_I_P_S.
  29.  
  30.           ----cccc   Dumps the string table.
  31.  
  32.           ----ccccmmmmtttt Dumps the .comment section.
  33.  
  34.           ----ccccnnnntttt Dumps the .content sections.
  35.  
  36.           ----ccccrrrr  Dumps compact relocation information.
  37.  
  38.           ----dddd   <_l_o_w_s_e_c_t_i_o_n>,<_h_i_g_h_s_e_c_t_i_o_n>
  39.                Restricts range of sections printed.  The section numbers must
  40.                be decimal (not octal or hexadecimal).  Example: elfdump -s -d
  41.                8,10 foo Use this to restrict the range of sections printed.
  42.                Various special sections print regardless of this.
  43.  
  44.           ----ddddiiiinnnnffffoooo
  45.                Dumps ._M_I_P_S._d_c_l_a_s_s section.
  46.  
  47.           ----ddddiiiinnnnsssstttt
  48.                Dumps ._M_I_P_S._i_n_s_t section.
  49.  
  50.           ----ddddssssyyyymmmm
  51.                Dumps ._M_I_P_S._s_y_m section.
  52.  
  53.           ----eeee   Dumps events sections.
  54.  
  55.           ----ffff   Dumps the ELF header.
  56.  
  57.           ----gggg   Dumps an archive symbol table.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. EEEELLLLFFFFDDDDUUUUMMMMPPPP                                                                EEEELLLLFFFFDDDDUUUUMMMMPPPP
  71.  
  72.  
  73.  
  74.           ----hhhh   Dumps all section headers in the file.
  75.  
  76.           ----hhhhaaaasssshhhh
  77.                Dumps hash section entries.
  78.  
  79.           ----iiii   Dumps the .interp section
  80.  
  81.           ----iiiiffffcccc Dump the ._M_I_P_S._i_n_t_e_f_a_c_e_s section
  82.  
  83.           ----iiiinnnnffffoooo
  84.                Dump information such as whether the object has been
  85.                requickstarted (_r_q_s(1)) or _c_o_r_d(1)ed.
  86.  
  87.           ----llll   This option emits a message suggesting you use the _d_w_a_r_f_d_u_m_p(1)
  88.                or _s_t_d_u_m_p(1) command to dump debugging line information.  For
  89.                objects compiled -64 or -n32 use _d_w_a_r_f_d_u_m_p.  For objects
  90.                compiled -32 use _s_t_d_u_m_p.
  91.  
  92.           ----lllloooonnnngggg
  93.                When used with -_L changes type names to print in full, matching
  94.                names in _e_l_f._h.  Affects only -_L.
  95.  
  96.           ----nnnn   _s_e_c_t_i_o_n_n_a_m_e
  97.                Dumps a named section.
  98.  
  99.           ----nnnnoooo____vvvveeeerrrrbbbboooosssseeee
  100.                Turn off ----vvvv option.  For some fields that print string values,
  101.                names or interpreted flag values, this changes the output to be
  102.                the plain indexes or offsets or flag.
  103.  
  104.           ----oooo   Dumps each program execution header.
  105.  
  106.           ----oooopppp  Dumps the .options section.
  107.  
  108.           ----pppp   Suppresses printing of headings.
  109.  
  110.           ----rrrr   Dumps relocation information.
  111.  
  112.           ----rrrreeeegggg Dumps ._r_e_g_i_n_f_o section.
  113.  
  114.           ----rrrrpppptttt Dumps runtime procedure table.
  115.  
  116.           ----ssss   Dumps contents of all sections (but see ----dddd above)
  117.  
  118.           ----ssssvvvvrrrr4444
  119.                Dump information in svr4 style.
  120.  
  121.           ----tttt   Dumps symbol table (the .symtab section) entries.  (see also
  122.                the ----TTTT   <_l_o_w_i_n_d_e_x>,<_h_i_g_h_i_n_d_e_x> option below).  (Programs and
  123.                DSOs do not normally have a .symtab section.  For programs and
  124.                DSOs use the ----DDDDtttt option to print the .dynsym section.)
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. EEEELLLLFFFFDDDDUUUUMMMMPPPP                                                                EEEELLLLFFFFDDDDUUUUMMMMPPPP
  137.  
  138.  
  139.  
  140.           ----vvvv   Prints information in verbose form.  This is the default.
  141.                Sometimes 'verbose' means interpret fields and print
  142.                symbolically.  To turn this off (therefore printing the fields
  143.                literally as numbers) use the ----nnnnoooo____vvvveeeerrrrbbbboooosssseeee option.
  144.  
  145.           ----xxxxllll  print the 'translate' section (Elf section type SHT_MIPS_XLATE)
  146.                of an object file.  See _x_l_a_t_e(4).  This is mostly intended for
  147.                use by those working on tools that create this section, such as
  148.                _c_o_r_d(1) or _p_i_x_i_e(1).
  149.  
  150.           ----xxxxlllldddd print the 'translate' debug section (Elf section type
  151.                SHT_MIPS_XLATE_DEBUG) of an object file.  See _x_l_a_t_e(4).  This
  152.                is mostly intended for use by those working on tools that
  153.                create this section, such as _c_o_r_d(1) or _p_i_x_i_e(1).
  154.  
  155.           ----xxxxlllliiii dump the 'translate' section (SHT_MIPS_XLATE) of an object file
  156.                in a form closely modeling the internal storage details.  This
  157.                is mostly intended for use by those working on tools that
  158.                create this section, such as _c_o_r_d(1) or _p_i_x_i_e(1).
  159.  
  160.           ----xxxxllllddddiiii
  161.                dump the 'translate' debug section (SHT_MIPS_XLATE_DEBUG) of an
  162.                object file in a form closely modeling the internal storage
  163.                details.  This is mostly intended for use by those working on
  164.                tools that create this section, such as _c_o_r_d(1) or _p_i_x_i_e(1).
  165.  
  166.           ----AAAA   Prints the beginning address of a section.  For some section
  167.                'content dumps' it prints the virtual address for each line of
  168.                section output.
  169.  
  170.           ----BBBB   Prints filename each detail line of output when ----cccc is
  171.                specified.
  172.  
  173.           ----CCCC   Dumps decoded C++ symbol names.
  174.  
  175.           ----DDDDgggg  Dumps got table in dynamic shared objects.
  176.  
  177.           ----DDDDllll  Dumps library list in dynamic shared objects.
  178.  
  179.           ----DDDDcccc  Dumps conflict list in dynamic shared objects.
  180.  
  181.           ----DDDDssssyyyymmmmlllliiiibbbb
  182.                Dumps ._M_I_P_S._s_y_m_l_i_b
  183.  
  184.           ----DDDDtttt  Dumps the dynamic symbol table (the .dynsym section).
  185.  
  186.           ----FFFF   Dumps the literal tables.
  187.  
  188.           ----GGGG   Dumps gp table information.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. EEEELLLLFFFFDDDDUUUUMMMMPPPP                                                                EEEELLLLFFFFDDDDUUUUMMMMPPPP
  203.  
  204.  
  205.  
  206.           ----LLLL   Dumps the .dynamic (various flags and values) and the .liblist
  207.                (list of named DSOs) sections.  (The .dynamic and .liblist
  208.                sections are used by _r_l_d(1)).  The .liblist flag field prints D
  209.                if the LL_DELAY_LOAD bit is on, E if the LL_EXPORTS bit is on,
  210.                R if the LL_REQUIRE_MINOR bit is on, I if the LL_IGNORE_INT_VER
  211.                bit is on, and M if the LL_EXACT_MATCH bit is on.  To see these
  212.                sections with the values as uninterpreted numbers (for example,
  213.                to see the actual flag bits in the .liblist) use the
  214.                ----nnnnoooo____vvvveeeerrrrbbbboooosssseeee option.
  215.  
  216.           ----PPPPppppeeeerrrrffff
  217.                Dumps the ._M_I_P_S._P_e_r_f__t_a_b_l_e section (a section created by
  218.                _p_i_x_i_e(1)).
  219.  
  220.           ----PPPPbbbbiiiinnnnmmmmaaaapppp
  221.                Dumps the ._M_I_P_S._P_e_r_f__b_b__o_f_f_s_e_t_s section (a section created by
  222.                _p_i_x_i_e).
  223.  
  224.           ----PPPPggggrrrraaaapppphhhh
  225.                Dumps the ._M_I_P_S._P_e_r_f__c_a_l_l__g_r_a_p_h section (a section created by
  226.                _p_i_x_i_e).
  227.  
  228.           ----PPPPaaaaddddddddrrrrssss
  229.                Dumps the ._M_I_P_S._A_d_d_r_s section (a section created by _p_i_x_i_e).
  230.  
  231.           ----PPPPffffuuuunnnnccccnnnnooooddddeeee
  232.                Dumps the ._M_I_P_S._P_e_r_f__f_u_n_c_t_i_o_n section (a section created by
  233.                _p_i_x_i_e).
  234.  
  235.           ----PPPPwwwweeeeaaaakkkk
  236.                Dumps the ._M_I_P_S._P_e_r_f__w_e_a_k__n_a_m_e_s section (a section created by
  237.                _p_i_x_i_e).
  238.  
  239.           ----RRRR   Dumps register info.
  240.  
  241.           ----TTTT   <_l_o_w_i_n_d_e_x>,<_h_i_g_h_i_n_d_e_x>
  242.                Dumps the symbol table entries in the given range.  (Like ----tttt
  243.                but restricted to a range of entries.)
  244.  
  245.           ----VVVV   Dumps version information.
  246.  
  247.           The eeeellllffffdddduuuummmmpppp command tries to format information in a helpful way,
  248.           printing information in character, hexadecimal, octal, or decimal,
  249.           as appropriate.
  250.  
  251. NNNNOOOOTTTTEEEESSSS
  252.      The ----DDDD and ----llll options, which formerly dumped debugging and line
  253.      information, are no longer supported in _e_l_f_d_u_m_p.  To obtain debugging and
  254.      line number information for 64-bit objects and objects compiled -n32, use
  255.      the _d_w_a_r_f_d_u_m_p command.  For objects compiled -32 use the _s_t_d_u_m_p command.
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. EEEELLLLFFFFDDDDUUUUMMMMPPPP                                                                EEEELLLLFFFFDDDDUUUUMMMMPPPP
  269.  
  270.  
  271.  
  272.      The interaction of options with each other is mostly unspecified and the
  273.      interactions can be surprising (with some option combinations a section
  274.      might be printed more than once, for example).
  275.  
  276. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  277.      _d_w_a_r_f_d_u_m_p(1), _s_t_d_u_m_p(1), _a_r(4), _e_l_f(4), _a._o_u_t(4), _x_l_a_t_e(4), _o_d_u_m_p(1),
  278.      _r_q_s(1).
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.